<?php


namespace App\Exceptions;


class ApiException extends \Exception
{

    public function __construct($code =0 ,$msg='')
    {
        if ($code != 0 ){
            $apicode = config('apicode');
            $msg = $apicode[$code] ?? '';
        }
        parent::__construct($msg,$code);
    }

}
